﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Infrastructure.Dto.Common
{
    /// <summary>
    /// 小程序自定义通用基类请求对象
    /// </summary>
    public class MiniBaseRequestDto
    {
        /// <summary>
        /// 登录凭证
        /// </summary>
        public string? code { get; set; }

        /// <summary>
        /// 小程序ID(微信小程序的AppId)
        /// </summary>
        public string? appid { get; set; }

        /// <summary>
        /// 用户在当前小程序的唯一标识
        /// </summary>
        public string? openid { get; set; }

        /// <summary>
        /// 微信开放平台账号下的唯一标识
        /// </summary>
        public string? unionid { get; set; }

        /// <summary>
        /// 支付宝唯一用户号
        /// </summary>
        public string? userid { get; set; }

        /// <summary>
        /// 本次登录的会话密钥(用户数据的加解密通讯需要依赖会话密钥完成)
        /// </summary>
        public string? session_key { get; set; }
        public string? access_token { get; set; }

        /// <summary>
        /// 错误码
        /// </summary>
        public int? errcode { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string? errmsg { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        public string? ip { get; set; }


    }
}
